﻿package com.findMoneyGame.pages.shop {
	import flash.display.MovieClip;

	import flash.events.Event;
	import flash.events.MouseEvent;
	
	public class PurchasingConfirmDialog extends MovieClip {
		public static const YES : String = "yes";
		public static const NO : String = "no";
		
		public function PurchasingConfirmDialog() {
			yesButton.addEventListener(MouseEvent.CLICK, yes);
			noButton.addEventListener(MouseEvent.CLICK, no);
		}
		private function yes (e : Event) {
			dispatchEvent(new Event(YES));
		}
		private function no (e : Event) {
			dispatchEvent(new Event(NO));
		}
	}
	
}
